<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Uber.WebUI.Models.ProfileDisplay>" %>

<%@ Import Namespace="Uber.WebUI.Controllers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table>
        <tr>
            <td>
                <img src='<%=Model.PicUrl %>' alt="profile picture" style="border-radius: 3px;" />
            </td>
            <td>
                <table class="ptable">
                    <tr>
                        <td>
                            Display name:
                        </td>
                        <td>
                            <%=Model.DisplayName %>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Email:
                        </td>
                        <td>
                            <%=Model.Email %>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                        <a href="<%=Url.Action("edit") %>">edit</a>
                        </td>
                    </tr>
                    <%if(Model.IsAweOid){%>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <%=Html.ActionLink<ChangePasswordController>(o => o.Index(), "Change Password") %>
                        </td>
                    </tr>
                    <%} %>
                </table>
            </td>
        </tr>
    </table>
    <p>
    <a href="<%=Url.Action("MyPurchases") %>">My Purchases</a>
    </p>
</asp:Content>
